const router = require('koa-router')();
const controller = require('../controller/c-oauth');
// 获取授权地址
router.get('/oauth/redirect', controller.oauth)
// 第三方登录
router.post('/oauth/login', controller.githubLogin)
// weibo授权回调地址
router.get('/oauth/weibo', controller.weiboOauth)
// weibo登录
router.post('/oauth/weiboLogin', controller.weiboLogin)
module.exports = router